﻿using System;
using System.Windows.Forms;

namespace GiwinMonk.GUI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        private void Form1_Load(object sender, EventArgs e)
        {
            chkJab.Checked = MIRsettings.Instance.Jab;
            chkTigerPalm.Checked = MIRsettings.Instance.TigerPalm;
            chkBlackoutKick.Checked = MIRsettings.Instance.BlackoutKick;
            chkGrappleWeapon.Checked = MIRsettings.Instance.GrappleWeapon;
            chkFistsOfFury.Checked = MIRsettings.Instance.FistsOfFury;
            chkExpelHarm.Checked = MIRsettings.Instance.ExpelHarm;
            chkDisable.Checked = MIRsettings.Instance.Disable;
            chkDetox.Checked = MIRsettings.Instance.Detox;
            chkPathOfBlossoms.Checked = MIRsettings.Instance.PathOfBlossoms;
            chkRisingSunKick.Checked = MIRsettings.Instance.RisingSunKick;
            chkTouchOfKarma.Checked = MIRsettings.Instance.TouchOfKarma;
            chkZenMeditation.Checked = MIRsettings.Instance.ZenMeditation;
            chkRoll.Checked = MIRsettings.Instance.Roll;
            chkResuscitate.Checked = MIRsettings.Instance.Resuscitate;
            chkSpinningFireBlossom.Checked = MIRsettings.Instance.SpinningFireBlossom;
            chkHealingSphere.Checked = MIRsettings.Instance.HealingSphere;
            chkSpinningCraneKick.Checked = MIRsettings.Instance.SpinningCraneKick;
            chkCracklingJadeLightning.Checked = MIRsettings.Instance.CracklingJadeLightning;
            chkFlyingSerpentKick.Checked = MIRsettings.Instance.FlyingSerpentKick;
            chkDampenHarm.Checked = MIRsettings.Instance.DampenHarm;
            chkSpearHandStrike.Checked = MIRsettings.Instance.SpearHandStrike;
            chkLegSweep.Checked = MIRsettings.Instance.LegSweep;
            chkParalysis.Checked = MIRsettings.Instance.Paralysis;
            chkQuakingPalm.Checked = MIRsettings.Instance.QuakingPalm;
            chkFortifyingBrew.Checked = MIRsettings.Instance.FortifyingBrew;
            chkEnergizingBrew.Checked = MIRsettings.Instance.EnergizingBrew;
            chkTigereyeBrew.Checked = MIRsettings.Instance.TigereyeBrew;
            chkTouchOfDeath.Checked = MIRsettings.Instance.TouchOfDeath;
            chkLegacyOfTheEmperor.Checked = MIRsettings.Instance.LegacyOfTheEmperor;
            chkLegacyOfTheWhiteTiger.Checked = MIRsettings.Instance.LegacyOfTheWhiteTiger;
            cbx15.SelectedText = MIRsettings.Instance.SelectedValuecbx15;
            cbx30.SelectedText = MIRsettings.Instance.SelectedValuecbx30;
            cbx45.SelectedText = MIRsettings.Instance.SelectedValuecbx45;
            cbx60.SelectedText = MIRsettings.Instance.SelectedValuecbx60;
            cbx75.SelectedText = MIRsettings.Instance.SelectedValuecbx75;
            cbx90.SelectedText = MIRsettings.Instance.SelectedValuecbx90;
            numRestOnHealthPercent.Value = MIRsettings.Instance.RestOnHealthPercent;
            numMaxTargetZDistance.Value = MIRsettings.Instance.MaxTargetZDistance;
            MIRsettings.Instance.Load();
        }

        private void chkJab_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Jab = chkJab.Checked;
        }

        private void chkTigerPalm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TigerPalm = chkTigerPalm.Checked;
        }

        private void chkBlackoutKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.BlackoutKick = chkBlackoutKick.Checked;
        }

        private void chkGrappleWeapon_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.GrappleWeapon = chkGrappleWeapon.Checked;
        }

        private void chkFistsOfFury_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FistsOfFury = chkFistsOfFury.Checked;
        }

        private void chkExpelHarm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ExpelHarm = chkExpelHarm.Checked;
        }

        private void chkDisable_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Disable = chkDisable.Checked;
        }

        private void chkDetox_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Detox = chkDetox.Checked;
        }

        private void chkPathOfBlossoms_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.PathOfBlossoms = chkPathOfBlossoms.Checked;
        }

        private void chkRisingSunKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.RisingSunKick = chkRisingSunKick.Checked;
        }

        private void chkTouchOfKarma_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TouchOfKarma = chkTouchOfKarma.Checked;
        }

        private void chkZenMeditation_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.ZenMeditation = chkZenMeditation.Checked;
        }

        private void chkRoll_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Roll = chkRoll.Checked;
        }

        private void chkResuscitate_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Resuscitate = chkResuscitate.Checked;
        }

        private void chkSpinningFireBlossom_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpinningFireBlossom = chkSpinningFireBlossom.Checked;
        }

        private void chkHealingSphere_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.HealingSphere = chkHealingSphere.Checked;
        }

        private void chkSpinningCraneKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpinningCraneKick = chkSpinningCraneKick.Checked;
        }

        private void chkCracklingJadeLightning_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.CracklingJadeLightning = chkCracklingJadeLightning.Checked;
        }

        private void chkFlyingSerpentKick_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FlyingSerpentKick = chkFlyingSerpentKick.Checked;
        }

        private void chkSpearHandStrike_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SpearHandStrike = chkSpearHandStrike.Checked;
        }

        private void chkLegSweep_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegSweep = chkLegSweep.Checked;
        }

        private void chkParalysis_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.Paralysis = chkParalysis.Checked;
        }

        private void chkQuakingPalm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.QuakingPalm = chkQuakingPalm.Checked;
        }

        private void chkFortifyingBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.FortifyingBrew = chkFortifyingBrew.Checked;
        }

        private void chkEnergizingBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.EnergizingBrew = chkEnergizingBrew.Checked;
        }

        private void chkTigereyeBrew_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TigereyeBrew = chkTigereyeBrew.Checked;
        }

        private void chkTouchOfDeath_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.TouchOfDeath = chkTouchOfDeath.Checked;
        }

        private void chkLegacyOfTheEmperor_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegacyOfTheEmperor = chkLegacyOfTheEmperor.Checked;
        }

        private void chkLegacyOfTheWhiteTiger_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.LegacyOfTheWhiteTiger = chkLegacyOfTheWhiteTiger.Checked;
        }

        private void numRestOnHealthPercent_ValueChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.RestOnHealthPercent = (int)numRestOnHealthPercent.Value;
        }

        private void chkDampenHarm_CheckedChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.DampenHarm = chkDampenHarm.Checked;
        }

        private void cbx15_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx15 = cbx15.SelectedItem.ToString();
        }

        private void cbx30_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx30 = cbx30.SelectedItem.ToString();
        }

        private void cbx45_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx45 = cbx45.SelectedItem.ToString();
        }

        private void cbx60_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx60 = cbx60.SelectedItem.ToString();
        }

        private void cbx75_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx75 = cbx75.SelectedItem.ToString();
        }

        private void cbx90_SelectedIndexChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.SelectedValuecbx90 = cbx90.SelectedItem.ToString();
        }

        private void BtnSave_Click(object sender, EventArgs e)
        {
            MIRsettings.Instance.Save();
        }

        private void numMaxTargetZDistance_ValueChanged(object sender, EventArgs e)
        {
            MIRsettings.Instance.MaxTargetZDistance = (int)numMaxTargetZDistance.Value;
        }

        private void label18_Click(object sender, EventArgs e)
        {

        }

        private void groupBox16_Enter(object sender, EventArgs e)
        {

        }

        private void groupBox7_Enter(object sender, EventArgs e)
        {

        }

        private void groupBox14_Enter(object sender, EventArgs e)
        {

        }

        private void chkFistsofFury2Targets_CheckedChanged(object sender, EventArgs e)
        {

        }
    }
}
